package model;

/**
 * This Class is a Customer Taarif Model which Saves new Taarifs  .
 * @author Tal & Yuda
 *
 */

public class Taarif {
	private int serviceID;
	private String description;
	private double oldPrice;
	private double newPrice;
	
	/**
	 * This is Default Taarif constructor.
	 * @param serviceID is a 0.
	 * @param description is " " .
	 * @param newPrice is 0.
	 */
	public Taarif()
	{
		this.serviceID = 0;
		this.description="";
		this.newPrice = 0;
		this.oldPrice = 0;	
	}
	
	
	/**
	 * This is Taarif constructor(UID).
	 * @param description is " " .
	 * @paramnewPrice is 0.
	 */
	public Taarif(int serviceID)
	{
		this(0,"",0,0);
		this.serviceID=serviceID;
	}
	
	
	/**
	 * This is Complaint constructor.
	 * @param cid is a User ID.
	 * @param serviceID is a Taarif ID.
	 * @param description is a Taarif description .
	 * @param newPrice is a Taarif  newPrice.
	 */
	
	public Taarif(int serviceID, String description, double  oldPrice, double newPrice)
	{
		this.serviceID=serviceID;
		this.description=description;
		this.newPrice= 0 ;
		this.oldPrice= oldPrice;
	
	}

	/**
	 * This method returns Taarif ID.
	 * @return int type.
	 */
		public int getserviceID() {
			return this.serviceID;
		}

	/**
	 * This method sets new Taarif id to Taarif.
	 * @param serviceID - new com's Id.
	 */
		public void setserviceID(int serviceID) {
			this.serviceID = serviceID;
		}

			
	/**
	 * This method returns Taarif description.
	 * @return String type.
	 */
		public String getdescription() {
			return this.description;
		}

	/**
	 * This method sets new Taarif in Taarif.
	 * @param description - new Taarif.
	 */
		public void setdescription(String description) {
			this.description = description;
		}
				
	/**
	  * This method returns  newPrice of Taarif.
	  * @return int type.
	 */
		public double getnewPrice() {
			return this.newPrice;
		}

	/**
	  * This method sets new newPrice to Taarif.
	  * @param newPrice - new Taarif newPrice .
	  */
    	public void setnewPrice(double newPrice) {
		this.newPrice = newPrice;
	    }
    	
    	/**
   	  * This method returns  newPrice of Taarif.
   	  * @return int type.
   	 */
   		public double getoldPrice() {
   			return this.oldPrice;
   		}

   	/**
   	  * This method sets new newPrice to Taarif.
   	  * @param newPrice - new Taarif newPrice .
   	  */
       	public void setoldPrice(double oldPrice) {
   		this.oldPrice = oldPrice;
   	    }

}